<div style="float:right;height:30px">

</div>
<!-----------------filter form ----------------------------------->
<form action="<?= $admin_base_url; ?>member/index/" method="post">
<table class="filter" cellspacing="0">
     <tr class='filterhead1'>
    	<td colspan="2"> Filter Options </td>
    </tr>
    <tr class='filterhead2'>
      
        <td> member </td>
      
        <td>&nbsp;  </td>
        
    </tr>
	<tr> 
    	<td> <input class="txt3" type="text" name="member" value="<?php echo $filter1; ?>"/>
			 </td> 
          <td>
			 <div class="buttons">
				 <button type="submit" name="search" class="positive" value="save" >
			        <img src="<?php echo $admin_image_path?>icons/apply.png" alt=""/>
                    Search
                 </button> 
                 <a href="<?= $admin_base_url; ?>member/clearFilter?rurl=<?php echo $rurl;?>" class="negative">
			        <img src="<?php echo $admin_image_path?>icons/cross.png" alt=""/>
			        Clear
			   </a>
             </div> 
           </td> 
     </tr> 
</table>
</form><a target="_blank" href="http://localhost/smsys2/index.php/fpanel//student/pdf_report//">
<img alt="" src="<?php echo $admin_image_path;?>print.jpg" align='right'>
</a>
<table class="tbllist">
<tbody>
<tr>
<th class="tbslno">Sl.No</th>
<th class="tbname"> Name</th>
<th class="tbname"> Gender</th>
<th class="tbname"> EmailId</th>
<th class="tbname"> Landline</th>
<th class="tbname"> Mobile</th>
<th class="tbname"> Address</th>
<th class="tbname"> Created on</th>
<th class="tbaction">Action</th>
</tr>
<?php 
if(!empty($member)) {
	foreach($member as $key => $record) {
		$style = (++$key%2) ? '' : 'alt'; 
?>	
	<tr class="<?php echo $style;?>">
		<td><?= ($cur_page + $key);?></td>
		<td><?php echo $record['name']?></td>
        <td><?php echo $record['gender']?></td>
           <td><?php echo $record['email_id']?></td>
         <td><?php echo $record['landline']?></td>
           <td><?php echo $record['mobile']?></td>
            <td><?php echo $record['addressline1']?> , <?php echo $record['addressline2']?> , <?php echo $record['city']?> , <?php echo $record['state']?> , <?php echo $record['pincode']?></td>
             <td><?php echo $record['created']?></td>
		<td>
		
		<a href="<?php echo $admin_base_url;?>member/delete/<?php echo $record['id'];?>/<?php echo $cur_page;?>" onclick="return confirm('Do you want to delete this ?');"><img border="0" src="<?php echo $admin_image_path;?>delete1.png" alt="" title="Delete" width="16" height="16"/></a>
		</td>
	</tr>
<?php 
	}
} else {
?>
<tr><td colspan="6">No members available</td></tr>
<?php }?>
</tbody>
</table>
<div class="spacer10 rightText">
<?php 	echo $this->pagination->create_links();?>
</div>